﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Skyworth.CRM.Service.Entity;
using Skyworth.CRM.Common;
using Skyworth.CRM.Service.IDAL;
using Skyworth.CRM.Service.IBLL;

namespace Skyworth.CRM.BLL
{
    public class CustQuoteBLL : ICustQuoteBLL
    {
        private ICustQuoteDAL _custQuoteDAL;
        public CustQuoteBLL(ICustQuoteDAL custQuoDAL)
        {
            _custQuoteDAL = custQuoDAL;
        }

        public string Add(string strPrefix, CustQuote model)
        {
            return _custQuoteDAL.Add(strPrefix,model);
        }
        public void Update(CustQuote model)
        {
            _custQuoteDAL.Update(model);
        }
        public void Delete(int custActId)
        {
            _custQuoteDAL.Delete(custActId);
        }
        public CustQuote GetModel(int id)
        {
            return _custQuoteDAL.GetModel(id);
        }
        public DataTable Query(string strWhere)
        {
            return _custQuoteDAL.Query(strWhere);
        }
        public DataTable Query(string strWhere, string orderKey, int pageSize, int pageIndex, out int recordCount)
        {
            return _custQuoteDAL.Query(strWhere, orderKey, pageSize, pageIndex, out recordCount);
        }
    }
}